<br>
<h1>코드그룹생성</h1>

<% form_for(@commoncode) do |f| %>
  <%= f.error_messages %>
<table border="0" cellpadding="0" cellspacing="0" width="540px">
  <tr>
    <td align="right"><%= f.submit 'Create' %></td>
  </tr>
</table>
<table border="1" cellpadding="0" cellspacing="0" width="540px">
 <tr>
   <td width="70" align="center">코&nbsp;&nbsp;&nbsp;&nbsp; 드</td>
   <td width="150">&nbsp;<%= f.text_field :Code, :size => '3' %>&nbsp; 사용여부 &nbsp;<%= f.check_box :InUse , :checked => true, :readonly => "true" %></td>
   <td width="70" align="center">명&nbsp;&nbsp;&nbsp;&nbsp; 칭</td>
   <td width="150">&nbsp;<%= f.text_field :Name, :size => '15' %></td>
 </tr>
 <tr>
   <td align="center">영문명칭</td>
   <td>&nbsp;<%= f.text_field :EName, :size => '15' %></td>
   <td align="center">별&nbsp;&nbsp;&nbsp;&nbsp; 칭</td>
   <td>&nbsp;<%= f.text_field :Alias, :size => '15' %></td>
 </tr>
 <tr>
   <td valign="top" align="center">상세정보</td>
   <td colspan="3"><%= f.text_area :Descriprion, :cols => '37', :rows => '2' %></td>
 </tr>
 <tr>
   <td valign="middle" align="center">기본정보</td>
   <td colspan="3">&nbsp;<%= f.text_field :Type, :size => '5', :value => 'codegroup', :readonly => "true" %>
   &nbsp;<%= f.text_field :ParentCode, :size => '1', :disabled => 'true' %>
   &nbsp;<%= f.text_field :CodeLevel, :size => '1', :value => '0', :readonly => "true" %></td>
 </tr>

</table>
<% end %>

<%= link_to 'Back', commoncodes_path %>